import permission from '@/store/modules/permission'

/**
 * 文件描述：
 * 创建时间：2023/9/5 16:26
 * 创建人：二
 */
const getters = {
	// 左侧导航收缩
	isCollapse: state => state.base.isCollapse,
	// 打开标签页
	tagNavList: state => state.base.tagNavList,
	// 缓存组件
	keepAliveView: state => state.base.keepAliveView,
	// 左侧导航选中
	menuActiveIndex: state => state.base.menuActiveIndex,
	// 登录 token
	token: state => state.user.token,
	// 用户名称
	userName: state => state.user.name,
	// 用户头像
	userAvatar: state => state.user.avatar,
	// 全部权限标识
	allPermission: state => state.permission.allPermission,
	// 登录用户权限
	permissions: state => state.permission.permissions
}
export default getters;
